package com.wang.music.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wang.music.entity.Singer;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 歌手表 服务类
 * </p>
 *
 * @author zifan
 * @since 2021-03-05
 */
public interface SingerService extends IService<Singer> {

    Map<String,Object> saveSinger(Singer singer);

    Map<String, Object> getAllSinger(Page<Singer> page);

    Map<String, Object> getSingerByName(String name);

    Map<String, Object> updateSinger(Singer singer);

    Map<String, Object> delSinger(Singer singer);

    Map<String, Object> changePic(MultipartFile pic);

    List<Singer> allSinger();
}
